﻿using Dispatcher.Core.Models;
using MiniFox.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dispatcher.Core.Providers
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister]
    public interface IUserProvider
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        UserModel GetUser(string userId);
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="authName"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        T GetOpenAuthUser<T>(string authName, string userId) where T : class;
    }
}
